<?php namespace App\Providers;

use Illuminate\Support\ServiceProvider;
use Blade;
use App\Http\Controllers\BlobsController;
class ServiceCounters extends ServiceProvider {

	/**
	 * Bootstrap the application services.
	 *
	 * @return void
	 */
	public function boot()
	{
		Blade::directive('countBlobs',function($expression){
			$count = new BlobsController();
			$blobs = $count->countContainers();
			return $blobs;
		});
	}

	/**
	 * Register the application services.
	 *
	 * @return void
	 */
	public function register()
	{
		//
	}

}
